package com.turing.customer.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

import java.text.ParseException;

/**
 * @author 孙国鹏
 */
@FeignClient("system-server")
public interface SystemService {
    /**
     * 客户已提现金额(手机)
     * @return
     */
    @GetMapping("/system/withdrawal/getCusTakeIn")
    Result getCusTakeIn(@RequestHeader("Authorization") String token1);

    /**
     * 字典详情(PC，手机)
     * @param dicId
     * @param dicName
     * @return
     */
    @GetMapping("/system/dic/getDic")
    Result getDic(@RequestParam("dicId") String dicId, @RequestParam("dicName") String dicName);

    /**
     * 客户客币充值统计列表(PC)
     */
    @GetMapping("/system/withdrawal/cgCoinChargeList")
    Result cgCoinChargeList(
            @RequestParam(value = "cusNickname", required = false) String cusNickname);

    /**
     * 增加商家流水(PC，手机)
     * @return
     */
    @PostMapping("/system/withdrawal/kwAddSave")
    Result kwAddSave(@RequestBody JSONObject json);

    /**
     * 增加客户流水(系统)
     * @param jsonObject
     * @return
     */
    @PostMapping("/system/withdrawal/cwAddSave")
    Result cwAddSave(@RequestBody JSONObject jsonObject);

    /**
     * 消息增加
     * @param jsonObject
     * @return
     */
    @PostMapping("/system/message/addSave")
    Result addSave(@RequestBody JSONObject jsonObject) throws ParseException;
}
